package com.lhkj.ct.meta.modules.scheduling.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;


/**
 * 排班状态
 */
public enum ScheduleStatus implements IEnum<Integer> {

    CANCEL(-1,"取消"),

    NORMAL(0,"正常"),

    SUSPEND(1,"停号")
    ;

    @EnumValue
    private final int code;

    private final String desc;

    ScheduleStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return code;
    }

}
